package com.ruoyi.system.api.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;

import java.util.ArrayList;
import java.util.List;

/**
 * 供电单位基本信息对象 sys_org
 * 
 * @author ruoyi
 * @date 2022-07-05
 */
public class SysOrg extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 本实体记录的唯一标识，创建供电单位的唯一编码。 */
    private String orgNo;

    /** 供电单位详细的名称。 */
    @Excel(name = "供电单位详细的名称。")
    private String orgName;

    /** 直接上级供电单位编号。 */
    @Excel(name = "直接上级供电单位编号。")
    private String pOrgNo;

    /** 单位类别：国网公司、省公司、地市公司、区县公司、分公司、供电所等。01 国网公司、02 省公司、03 地市公司 、04 区县公司、05 分公司、06 供电所。 */
    @Excel(name = "单位类别：国网公司、省公司、地市公司、区县公司、分公司、供电所等。01 国网公司、02 省公司、03 地市公司 、04 区县公司、05 分公司、06 供电所。")
    private String orgType;

    /** 供电单位路径 */
    @Excel(name = "供电单位路径")
    private String orgTree;

    /** 在同级中的排列顺序的序号，用自然数标识，如，1、2、3。 */
    @Excel(name = "在同级中的排列顺序的序号，用自然数标识，如，1、2、3。")
    private Long sortNo;

    /** 删除标志 */
    @Excel(name = "删除标志")
    private String isDelete;

    /** 税务登记号 */
    @Excel(name = "税务登记号")
    private String taxId;

    /** 菜单备注 */
    @Excel(name = "菜单备注")
    private String attr1;

    /** 扩展属性2 */
    @Excel(name = "扩展属性2")
    private String attr2;

    /** 扩展属性3 */
    @Excel(name = "扩展属性3")
    private String attr3;

    /** 扩展属性4 */
    @Excel(name = "扩展属性4")
    private String attr4;

    /** 保留字段1 */
    @Excel(name = "保留字段1")
    private String preserve1;

    /** 保留字段2 */
    @Excel(name = "保留字段2")
    private String preserve2;

    /** 保留字段3 */
    @Excel(name = "保留字段3")
    private String preserve3;

    /** 保留字段4 */
    @Excel(name = "保留字段4")
    private String preserve4;

    /** 保留字段5 */
    @Excel(name = "保留字段5")
    private String preserve5;

    /** 子部门 */
    private List<SysOrg> children = new ArrayList<SysOrg>();

    public void setOrgNo(String orgNo) 
    {
        this.orgNo = orgNo;
    }

    public String getOrgNo() 
    {
        return orgNo;
    }
    public void setOrgName(String orgName) 
    {
        this.orgName = orgName;
    }

    public String getOrgName() 
    {
        return orgName;
    }
    public void setpOrgNo(String pOrgNo) 
    {
        this.pOrgNo = pOrgNo;
    }

    public String getpOrgNo() 
    {
        return pOrgNo;
    }
    public void setOrgType(String orgType) 
    {
        this.orgType = orgType;
    }

    public String getOrgType() 
    {
        return orgType;
    }
    public void setOrgTree(String orgTree) 
    {
        this.orgTree = orgTree;
    }

    public String getOrgTree() 
    {
        return orgTree;
    }
    public void setSortNo(Long sortNo) 
    {
        this.sortNo = sortNo;
    }

    public Long getSortNo() 
    {
        return sortNo;
    }
    public void setIsDelete(String isDelete) 
    {
        this.isDelete = isDelete;
    }

    public String getIsDelete() 
    {
        return isDelete;
    }
    public void setTaxId(String taxId) 
    {
        this.taxId = taxId;
    }

    public String getTaxId() 
    {
        return taxId;
    }
    public void setAttr1(String attr1) 
    {
        this.attr1 = attr1;
    }

    public String getAttr1() 
    {
        return attr1;
    }
    public void setAttr2(String attr2) 
    {
        this.attr2 = attr2;
    }

    public String getAttr2() 
    {
        return attr2;
    }
    public void setAttr3(String attr3) 
    {
        this.attr3 = attr3;
    }

    public String getAttr3() 
    {
        return attr3;
    }
    public void setAttr4(String attr4) 
    {
        this.attr4 = attr4;
    }

    public String getAttr4() 
    {
        return attr4;
    }
    public void setPreserve1(String preserve1) 
    {
        this.preserve1 = preserve1;
    }

    public String getPreserve1() 
    {
        return preserve1;
    }
    public void setPreserve2(String preserve2) 
    {
        this.preserve2 = preserve2;
    }

    public String getPreserve2() 
    {
        return preserve2;
    }
    public void setPreserve3(String preserve3) 
    {
        this.preserve3 = preserve3;
    }

    public String getPreserve3() 
    {
        return preserve3;
    }
    public void setPreserve4(String preserve4) 
    {
        this.preserve4 = preserve4;
    }

    public String getPreserve4() 
    {
        return preserve4;
    }
    public void setPreserve5(String preserve5) 
    {
        this.preserve5 = preserve5;
    }

    public String getPreserve5() 
    {
        return preserve5;
    }

    public List<SysOrg> getChildren() {
        return children;
    }

    public void setChildren(List<SysOrg> children) {
        this.children = children;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("orgNo", getOrgNo())
            .append("orgName", getOrgName())
            .append("pOrgNo", getpOrgNo())
            .append("orgType", getOrgType())
            .append("orgTree", getOrgTree())
            .append("sortNo", getSortNo())
            .append("isDelete", getIsDelete())
            .append("taxId", getTaxId())
            .append("attr1", getAttr1())
            .append("attr2", getAttr2())
            .append("attr3", getAttr3())
            .append("attr4", getAttr4())
            .append("preserve1", getPreserve1())
            .append("preserve2", getPreserve2())
            .append("preserve3", getPreserve3())
            .append("preserve4", getPreserve4())
            .append("preserve5", getPreserve5())
            .toString();
    }
}
